function gets(pageNum) {
    var m = $("#dinumber").val();
    var l = $("#cname").val();
    var k = $("#jixing").val();
    var j = $("#guige").val();
    var i = $("#danwei").val();
    var h = $("#cc").val();
    var g = $("#qiye").val();
    var f = $("#shangpin").val();
    var e = $("#lefPprice").val();
    var d = $("#rightPrice").val();
    var c = $("#cengci").val();
    var b = $("#dcid").val();
    var a = $("#state").val();
    var pageN = pageNum;
    $.ajax({
            url: '/myspringboot/CommodityController/findAllDCSdi',
            type: 'post',
            dataType: "json",
            data: {
                dinumber: m,
                cname: l,
                jixing: k,
                guige: j,
                danwei: i,
                cc: h,
                qiye: g,
                shangpin: f,
                lefPprice: e,
                rightPrice: d,
                cengci: c,
                leibie: b,
                state: a,
                pageNum: pageN,
            },
            success: function (result) {
                var result = result.data;
                yibu(result.pages, result.pageNum);
                var list = result.list;
                $(".a").empty();
                for (var i = 0; i < list.length; i++) {
                    var drugInformation = list[i].drugInformation;
                    if (drugInformation!=null){
                        var diId = drugInformation.diId;
                        //药品流水号
                        var daNumber =drugInformation.diNumer;
                        //通用名
                        var diName = drugInformation.diName;
                        //剂型
                        var diForm = drugInformation.diForm;
                        //规格
                        var diSpecifications = drugInformation.diSpecifications;
                        //单位
                        var diUnit = drugInformation.diUnit;
                        //装换系数
                        var diCc = drugInformation.diCc;
                        //中间jia
                        var diNewPrice = drugInformation.diNewPrice;
                    }
                    //生产企业
                    var manufacturer = list[i].manufacturer;
                    if (manufacturer != null) {
                        var mfName = manufacturer.mfName;
                    }
                    var daName = null;
                    var drugAtegory = list[i].drugAtegory;
                    if (drugAtegory == null) {
                        daName = "null"
                    } else {
                        //商品名称
                        daName = drugAtegory.daName;
                    }

                    //质量层次
                    var drugQualityLevel = list[i].drugQualityLevel;
                    if (drugQualityLevel != null) {
                        var dqlName = drugQualityLevel.dqlName;
                    } else {
                        var dqlName = "null"
                    }

                    //药品类别
                    var drugCategory = list[i].drugCategory;
                    if (drugCategory != null) {
                        var dcName = drugCategory.dcName;
                    } else {
                        var dcName = "null"
                    }
                    //交易状态
                    var diTradingStatus = list[i].diTradingStatus;
                    var a = "";
                    if (diTradingStatus == 0) {
                        a = "未交易";
                    } else {
                        a = "交易完成"
                    }
                    var $tr = '<tr>' +
                        '<td>' + daNumber + '</td>' +
                        '<td>' + diName + '</td>' +
                        '<td>' + diForm + '</td>' +
                        '<td>' + diSpecifications + '</td>' +
                        '<td>' + diUnit + '</td>' +
                        '<td>' + diCc + '</td>' +
                        '<td>' + mfName + '</td>' +
                        '<td>' + daName + '</td>' +
                        '<td>' + diNewPrice + '</td>' +
                        '<td>' + dqlName + '</td>' +
                        '<td>' + dcName + '</td>' +
                        '<td>' + a + '</td>' +
                        '<td>' + "1" + '</td>' +
                        '<td>' + "1" + '</td>' +
                        '<td>' + "<button id='btn_re' data-toggle='modal'onclick='xiugai(" + diId + ")' data-target='#myModal'>修改</button>" + '</td>' +
                        '<td>' + '<button id="btn_re" data-toggle="modal"onclick="findOne(' + diId + ')" data-target="#myModal">查看</button>' + '</td>' +
                        '</tr>'
                    $(".a").append($tr);
                }
            }
        }
    )
}
